home *** CD-ROM | disk | FTP | other *** search
/ Gekikoh Dennoh Club 5 / Gekikoh Dennoh Club Vol. 5 (Japan).7z / Gekikoh Dennoh Club Vol. 5 (Japan) (Track 01).bin / internet / webx / webxp040.lzh / Source / gifl.inc < prev    next >
Text File  |  1998-07-11  |  2KB  |  157 lines

  1. *    gifl.inc
  2.  
  3.  
  4.  
  5. * âIâèâWâiâïé╠ gif_load.hüiâRâüâôâg by Mitsukyüj
  6.  
  7. *
  8. *    GIF decode routine include file.
  9. *
  10. *                  v1.06 programmed 1996 by Herzen
  11.  
  12.  
  13. IMAGE_SEPARATOR    =    $2c
  14. EXT_INTRODUCER    =    $21
  15. TRAILER        =    $3b
  16.  
  17. FOR_PI256    =    65536+256
  18.  
  19.     * ìéæ¼âRü[âhô╟é▌ĵéΦâ}âNâì
  20. readCode    .macro
  21.     move.b    2(a3),d1        * 12
  22.     swap.w    d1            * 4
  23.     move.b    1(a3),-(sp)        * 16
  24.     move.w    (sp)+,d1        * 8
  25.     move.b    (a3),d1            * 8
  26.  
  27.     lsr.l    d3,d1            * 8+2n
  28.     add.w    d6,d3            * 8
  29.  
  30.     move.w    d3,d0            * 4
  31.     lsr.w    #3,d0            * 12
  32.     adda.w    d0,a3            * 8
  33.     and.w    #%111,d3        * 8
  34.  
  35.     and.w    d5,d1            * ReadMask,d1
  36.         .endm
  37.  
  38.  
  39.     .offset 0
  40. __gifwork:
  41. Address:
  42.         .ds.l    4096
  43. Length:
  44.         .ds.w    4096
  45. **
  46. gif_ver:    .ds.w    1
  47. sc_xsize:    .ds.w    1
  48. sc_ysize:    .ds.w    1
  49. sc_cr:        .ds.w    1    * ÉFë≡æ£ôx color resolution 
  50. sc_pixel:    .ds.w    1
  51. bg_col:        .ds.w    1
  52. aspect:        .ds.w    1
  53. img_CodeSize:    .ds.w    1
  54. img_BitMask:    .ds.w    1
  55. animated_gif:    .ds.w    1
  56. **
  57. ClearCode:    .ds.w    1
  58. EOFCode:    .ds.w    1
  59. FirstFree:    .ds.w    1
  60. InitCodeSize:    .ds.w    1
  61. InitMaxCode:    .ds.w    1
  62. InitReadMask:    .ds.w    1
  63. **
  64. colum8:        .ds.l    1
  65. colum4:        .ds.l    1
  66. **
  67. chk_addr:    .ds.l    1
  68. restore_addrs:    .ds.l    1*2
  69.  
  70. ;    .text
  71.  
  72. ;    .offset 0
  73. vgram:        .ds.l    1
  74.         .ds.b    4
  75. one:        .ds.w    1
  76. OutCode_tmp:    .ds.w    1
  77. colum:        .ds.l    1
  78. line:        .ds.l    1
  79. colum2:        .ds.l    1
  80. XC:        .ds.w    1
  81. YC:        .ds.w    1
  82. oldYC:        .ds.w    1
  83. Pass:        .ds.w    1
  84. ptr:        .ds.l    1
  85. Interlace:    .ds.w    1
  86. misc:        .ds.w    1
  87. MaxCode:    .ds.w    1
  88. OldCode:    .ds.w    1
  89. BitMask:    .ds.w    1
  90. FinChar:    .ds.w    1
  91. InCode:        .ds.w    1
  92. prelen:        .ds.w    1
  93. interlace_trans_addr:    .ds.l    1
  94. next_readdata_addr:    .ds.l    1
  95. error_flag:    .ds.w    1
  96.  
  97. __gifworkend:
  98.  
  99.  
  100.  
  101.  
  102. * âIâèâWâiâïé╠ work.hüiâRâüâôâg by Mitsukyüj
  103.  
  104.     .offset 0
  105.  
  106. _works:
  107. _buff_addr:
  108.     .ds.l    1
  109. _buff_addr256:
  110.     .ds.l    1
  111. _tmp_buff_addr:
  112.     .ds.l    1
  113. _enddata_addr:
  114.     .ds.l    1
  115. _gif_hispeed:
  116.     .ds.w    1
  117. _srcfile:
  118.     .ds.l    1
  119. _src_fsize:
  120.     .ds.l    1
  121. _buff_size:
  122.     .ds.l    1
  123. _buff_req:
  124.     .ds.l    1
  125.  
  126. _color:
  127.     .ds.w    1    * 16ÉFò\Īé⌐üC256ÉFò\Īé⌐
  128.  
  129. _colum:            * X SIZE
  130.     .ds.w    1
  131. _line:            * Y SIZE
  132.     .ds.w    1
  133. _scolum:        * Start X
  134.     .ds.w    1
  135. _sline:            * Start Y
  136.     .ds.w    1
  137. _ecolum:        * End   X
  138.     .ds.w    1
  139. _eline:            * End   X
  140.     .ds.w    1
  141.  
  142.  
  143. _file:
  144.     .ds.w    1
  145.  
  146. _tpcolor:        * ôºû╛ÉF
  147.     .ds.w    1
  148.  
  149. _pal_buf:
  150.     .ds.b    256*2
  151.  
  152. _tmp:
  153.     .ds.b    1024*2
  154. _endworks:
  155.  
  156.     .text
  157.